import Vue from 'vue'
import Vuex from 'vuex' 

Vue.use(Vuex)

export default new Vuex.Store({
    state:{
        city:'广州'
    },
    mutations:{
        citys(state,name){
            state.city = name
        }
    },
    actions:{
        cityKeys({commit},name){
            commit('citys',name)
        }
    }
})
